home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 21
/
Cream of the Crop 21 (Terry Blount) (October 1996).iso
/
editor
/
mintr151.zip
/
README.1ST
< prev
next >
Wrap
Text File
|
1996-08-23
|
6KB
|
160 lines
MiniTrue is a fast and versatile text search/view/replace utility run
from the DOS command line. MiniTrue should work on all PC-compatibles
with 200K of free memory. MiniTrue is freeware and can be included on
shareware/freeware CDs. All other manners of distribution which involve
payment require prior permission.
Email: apipkin@nando.net
Web site: http://www.webbuild.com/~apipkin
File List:
MT.EXE - program file
MINITRUE.DOC - main documentation
README.1ST - this file
UNIX2DOS.BAT - MiniTrue batch file - converts UNIX newlines to DOS
DOS2UNIX.BAT - MiniTrue batch file - converts DOS newlines to UNIX
HTMLSTRP.BAT - MiniTrue batch file - will strip tags from HTML files and
store the stripped versions with the extension .TXT
TEXTTOC.BAT - MiniTrue batch file - converts a text file into a C
string constant and stores the string constant with
the extension .CPP. The first argument is the name
of the text file, the second is the name of the string
variable.
HTMSHORT.MT - MiniTrue string file - converts HTML "shorthand" to
regular HTML. HTMSHORT.MT is used with the /i option.
(See file for information)
Backwards Incompatibilities with MiniTrue 1.0:
(Ignore if you are unaware of the existence of MiniTrue 1.0)
The main difference between versions 1.0 and 1.5 is the order of the
arguments on the command line. While the order in MiniTrue 1.0 was
[files] [options]; [strings], in 1.5 the arguments go [options] [files]
/ [strings]. If only one file is to be searched, the slash between the
files and strings can be omitted.
1.0 options and their 1.5 equivalent
/f - Fifty column display = /v set Video mode
/g - vary gap between strings in union = /u set Union parameters
/n - display non-ASCII strings = /p change printing chars
/p - skip prompting = /n no prompting
Log is written to a file instead of standard output
Regular expressions of zero length are now allowed
File names are no longer saved with the default configuration. Use
a batch file or a file used with the /@ option to perform operations
over a group of files.
Must press 'n' instead of any key to move to the next match
\i representing found string can only be used with regular expression
Make sure the configuration file for MiniTrue 1.0 is not in your path
when using version 1.5, because the configuration files are not
compatible.
Changes for version 1.5.1 over 1.5.0
Bug fixed - can now make replacements in standard input if output is
sent to standard output
MINITRUE.CFG file version-sensitive - can only be used with version
of MiniTrue it was created with
Improvements for version 1.5.0
MiniTrue 1.5 does not limit text viewing to only one screen like 1.0
did; the entire file can be scrolled through.
Can decompress .ZIP files (and files from virtually every archiver)
before scanning them.
MiniTrue 1.5 features accelerated scrolling. The scrolling speed will
increase as the up/down arrow keys are held down. This behavior can be
escaped by using the f and v keys to move up or down a line. The /s option
will turn accelerated scrolling off completely.
More options for writing to standard output and can scan standard
input
Can generate a batch file automatically from the arguments on the
command line
Support for nonstandard video modes (such as 132 * 43)
And many more
Notes
To see the help screens of MiniTrue, just type mt and press enter.
To view the main documentation file in the textviewer mode of MiniTrue,
type mt minitrue.doc and press enter.
A filename ending in * without an extension will be expanded to
*.* Use *. to find files with blank extension.
Filenames ending in \ will have *.* appended to them so all files
in the directory will be searched
^ in a regular expression set appearing in a position other than the
leftmost will result in all the characters following the ^ being excluded
from the set. [a-z^aeiou] will match the lower case consonants. ^ preceded
by a backslash will be treated as a normal character.
If the press any key prompt appearing at startup annoys you, typing
mt /qd will make skipping that screen the default behavior.
Using the /b option will give the original version of files that
are changed the .BAK extension. /b+ will not alter the original file
in any manner and save the altered version with the .NEW extension.
Bugs - All the known bugs for MiniTrue 1.5 are quite minor
When scrolling upwards, only the first line of highlights occupying
multiple lines will be displayed.
More than 32000 consecutive non-displayed, non-\n characters can
result in a error
Making replacements in text written to standard output with lines
longer than 1500 characters might result in the start & ends of lines
getting messed up.
Possible features for MiniTrue 2.0
MiniTrue 2.0 will be released when (and if) its released
File & Text selection
capacity to select files by date, size, other criteria
capacity to only match strings in certain line numbers, between
strings, inside a string
Textviewer
highlight previous finds/replacements instead of just current
allow entering new finds/replacements from textviewer
allow typing text directly onto screen instead of awkward sub command
Regular Expression
Support all features of extended UNIX regular expressions:
alternative - a|b|c
recursion - ([a-z]+\s+)+
backreferences - ([a-z])\1
Look for longest fixed string instead of first part
Capacity to insert an entire file in a replacement string
> will mean keep going until item to right of > found
Make unions boolean - allow or & not in addition to add
Allow more than 40 find/replace strings, can hopefully get up to 400
Have translate option
There are no definite plans to port MiniTrue to other platforms, but
if there were, they would probably go:
DOS protected-mode -> Linux/GNU C -> Win 32 console mode